<div class="box box-success" style="margin-bottom: 0px">
    <div class="box-header with-border">
        <h3 class="box-title">文本框</h3>
    </div>
    <form role="form">
        <div class="box-body">
            <div class="form-group">
                <label>字段名称</label> {:Form::text('name', isset($params.name)?$params.name:'NewField', ['data-rule'=>'required'])}
            </div>
            <div class="form-group">
                <label>控件名称</label> {:Form::text('title', isset($params.title)?$params.title:'', ['data-rule'=>'required;filter'])}
            </div>
            <div class="form-group">
                <label>默认值</label> {:Form::text('value', isset($params.value)?$params.value:'')}
            </div>
            <div class="form-group">
                <label>提示文字</label> {:Form::text('options_placeholder', isset($params.options_placeholder)?$params.options_placeholder:'')}
            </div>
            <div class="form-group">
                <label>文本类型</label> {:Form::select('text_type', ['text'=>'普通文本','hidden'=>'隐藏文本','email'=>'邮箱地址','password'=>'密码文本','url'=>'URL地址'], isset($params.text_type)?$params.text_type:'text')}
            </div>
            <div class="form-group">
                <label>最小字符数</label> {:Form::input('number','options_rule_range', isset($params.options_rule_range)?$params.options_rule_range:'')}
            </div>
            <div class="form-group">
                <label>最大字符数</label> {:Form::input('number','options_rule_length', isset($params.options_rule_length)?$params.options_rule_length:'')}
            </div>
            <div class="form-group">
                <label>表单验证</label> {:Form::select('options_rule', [ ''=>'不验证', 'required'=>'必填', 'integer'=>'整数', 'digits' =>'数字', 'letters'=>'字母', 'date'=>'日期(yyyy-mm-dd)', 'time'=>'时间(hh:ii)', 'email'=>'邮箱', 'url'=>'URL链接', 'qq'=>'QQ号', 'IDcard'=>'身份证',
                'tel'=>'电话号码', 'mobile'=>'手机号码', 'chinese'=>'中文字符', 'filter'=>'过滤' ], isset($params.options_rule)?$params.options_rule:'')}
            </div>
            <div class="form-group">
                <label>只读</label> {:Form::select('options_readonly', [ 'false'=>'否', 'true'=>'是' ], isset($params.options_readonly)?$params.options_readonly:'')}
            </div>
        </div>
        <div class="form-group hidden">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('Submit')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
    </form>
</div>